package easy;

public class Solution_674 {

    public int findLengthOfLCIS(int[] nums) {
        int count = 1, maxCount = count;
        for (int i = 1; i < nums.length; i++) {
            if (nums[i]>nums[i-1]) {
                count++;
            } else {
                maxCount = Math.max(count, maxCount);
                count = 1;
            }
        }
        return Math.max(count, maxCount);
    }

    public static void main(String[] args) {
        Solution_674 model = new Solution_674();
        System.out.println(model.findLengthOfLCIS(new int[]{1,3,5,4,7}));
        System.out.println(model.findLengthOfLCIS(new int[]{1,3,3,4,7}));
        System.out.println(model.findLengthOfLCIS(new int[]{2,2,2,2,2}));
    }
}
